<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"/>
    <title>公寓列表</title>
    <link rel="stylesheet" href="/css/bootstrap.css" th:href="@{/css/bootstrap.css}"/>
</head>
<body class="container">
<br/>
<h1>公寓列表</h1>
<br/><br/>
<div class="with:80%">
    <table class="table table-hover">
        <thead>
        <tr>
            <th>收藏编号</th>
            <th>房东姓名</th>
            <th>房屋地址</th>
            <th>公寓图片</th>
            <th>公寓价格</th>
            <th>公寓类型</th>
            <th>公寓状态</th>
            <th>公寓简介</th>
            <th>删除</th>
        </tr>
        </thead>
        <tbody>
        <tr  th:each="collectview : ${collectviews}">
            <th scope="row" th:text="${collectview.id}"></th>
            <td th:text="${collectview.username}"></td>
            <td th:text="${collectview.address}"></td>
            <td><img th:src="@{${collectview.picture}}" width="100" height="100"></td>
            <td th:text="${collectview.price}"></td>
            <!--      <td th:text="${apartment.price}"></td>-->
            <td th:text="${collectview.apartment_type}"></td>
            <td th:text="${collectview.apartment_statu}"></td>
            <td th:text="${collectview.content}"></td>
            <td><a th:href="@{/serve/delete(cid=${collectview.id},uid = ${collectview.user_id})}">取消收藏</a></td>
        </tr>
        </tbody>
    </table>
</div>
</body>
</html>